package com.nuanshui.heatedloan.credit.dal.mapper;

import com.nuanshui.heatedloan.credit.form.CustomerCompanyInfoForm;
import com.nuanshui.heatedloan.credit.vo.CustomerCompanyInfoVO;
import org.apache.ibatis.annotations.Param;

/**
 * Created by wangxw on 2017/7/4.
 */
public interface CustomerCompanyInfoMapper {

    /***
     * 新增客户公司基本信息
     * @param customerCompanyInfoForm
     */
    void save(CustomerCompanyInfoForm customerCompanyInfoForm);

    /***
     * 修改客户公司基本信息
     * @param customerCompanyInfoForm
     */
    void update(CustomerCompanyInfoForm customerCompanyInfoForm);

    /***
     * 根据id获取客户公司基本信息
     * @param userId
     */
    CustomerCompanyInfoVO loadVO(@Param("id") String id);
    /***
     * 根据用户id获取客户公司基本信息
     * @param userId
     */
    CustomerCompanyInfoVO loadVOByUserId(@Param("userId") String userId);

    /***
     * 删除客户公司基本信息
     * @param id
     */
    void delete(@Param("id") String id);
}
